from django.db import models

# Create your models here.


class UserModel(models.Model):
    name = models.CharField( max_length = 30 )
    age = models.PositiveIntegerField   #非负数



# 数据迁移（逆向工程）：
# python manage.py makemigrations   生成迁移文件
# python manage.py migrate    逆向生成表
# python manage.py runserver     启动django服务



